$(".tab_icon_one").on("click",function(e){
		console.log("1");
		var target = $(e.currentTarget);
		target.addClass("active");
		$(".tab_icon_two").removeClass("active");
		$(".tab_icon_thr").removeClass("active");
		$(".tab_icon_fiv").removeClass("active");
		$(".tab_icon_fir").removeClass("active");
		$(".tab_icon").attr("data_tyo","1");
		
		var searchData = sSearch.getData();
		//var clickData = click.getData();
		qQuery.query({
			dname : searchData.dname,
			//dstatus : clickData.dstatus,
			role : searchData.role
		})
})
$(".tab_icon_two").on("click",function(e){
		console.log("2");
		var target = $(e.currentTarget);
		target.addClass("active");
		$(".tab_icon_one").removeClass("active");
		$(".tab_icon_thr").removeClass("active");
		$(".tab_icon_fiv").removeClass("active");
		$(".tab_icon_fir").removeClass("active");
		$(".tab_icon").attr("data_tyo","2");
		var searchData = sSearch.getData();
		//var clickData = click.getData();
		qQuery.query({
			dname : searchData.dname,
			role : searchData.role,
			//dstatus : clickData.dstatus
		})
	})
$(".tab_icon_thr").on("click",function(e){
		console.log("3");
		var target = $(e.currentTarget);
		target.addClass("active");
		$(".tab_icon").attr("data_tyo","3");
		$(".tab_icon_two").removeClass("active");
		$(".tab_icon_one").removeClass("active");
		$(".tab_icon_fiv").removeClass("active");
		$(".tab_icon_fir").removeClass("active");
		var searchData = sSearch.getData();
		//var clickData = click.getData();
		qQuery.query({
			dname : searchData.dname,
			//dstatus : clickData.dstatus,
			role : searchData.role
		})
	})
$(".tab_icon_fir").on("click",function(e){
		console.log("4");
		var target = $(e.currentTarget);
		target.addClass("active");
		$(".tab_icon").attr("data_tyo","4");
		$(".tab_icon_two").removeClass("active");
		$(".tab_icon_one").removeClass("active");
		$(".tab_icon_fiv").removeClass("active");
		$(".tab_icon_thr").removeClass("active");
		var searchData = sSearch.getData();
		//var clickData = click.getData();
		qQuery.query({
			dname : searchData.dname,
			//dstatus : clickData.dstatus,
			role : searchData.role
		})
	})
$(".tab_icon_fiv").on("click",function(e){
		console.log("5");
		var target = $(e.currentTarget);
		target.addClass("active");
		$(".tab_icon").attr("data_tyo","5");
		$(".tab_icon_two").removeClass("active");
		$(".tab_icon_one").removeClass("active");
		$(".tab_icon_fir").removeClass("active");
		$(".tab_icon_thr").removeClass("active");
		var searchData = sSearch.getData();
		//var clickData = click.getData();
		qQuery.query({
			dname : searchData.dname,
			//dstatus : clickData.dstatus,
			role : searchData.role
		})
	})

//编辑限制条件
			var listUl = $("#mlistUl");
			listUl.on("click",".sta",function(e){
				var target = $(e.currentTarget);
				//alert(target)
				var mid= target.data("mid");
				var active= target.data("active");
				
				var rid= target.data("rid");
				var p_name= target.data("p_name");
				if(active=="2"){
					content=   '<form id="account_setting" action="ddddd">';
					content+=  '<input type="hidden" name="mid" value="'+mid+'">';
					content+=  '<input type="hidden" name="status" value="3">';
					content+=   '<input type="type" name="msg" class="bohui">';
					content+=	'</form>';
					easyDialog.open({
						container : {
						header : '驳回原因',
						content : content,
						yesFn :function(){
								var day_num = $("#account_setting .day_num").val();
								var ticket = $("#account_setting .ticket").val();
								var time = $("#account_setting .time").val();
								//alert(day_num)
								var data = $("#account_setting").serialize();
								//$.post("http://www.12301.cc/call/jh_alliance.php?action=audit_do",data,function(data){
								$.post("http://www.12301.cc/admin/pppp.php",data,function(data){
									 if(data.status=='success'){
                                         PFT_GLOBAL.U.Alert("success",'<p style="width:120px;">'+data.msg+'</p>');
                                         target.parent().parent().prev().text('驳回');
                                         var ple_sta = target.siblings('.stc').attr('ple_sta');
                                         if(ple_sta == '1' ){
                                            target.text('退押金').removeClass('sta').addClass('stc');
                                         }
                                         else
                                            target.parent().html('');
									 }else{
                                         PFT_GLOBAL.U.Alert("fail",'<p style="width:120px;">'+data.msg+'</p>');
									}
									 
								},'json');

							},
						noFn : true
						}
						
					});
				}
                //退出
				if(active=="0"){
					$.ajax({
                        //"url" : "http://www.12301.cc/call/jh_alliance.php?action=audit_do",
                        "url" : "http://www.12301.cc/admin/pppp.php",
                        "data" :  {mid:mid,status:"1"},
                        "dataType":"json",
                        "type": 'POST',
                        "success":function(data){
                            if(data.status=='success'){
                                PFT_GLOBAL.U.Alert("success",'<p style="width:120px;">'+data.msg+'</p>');
                                target.parent().parent().prev().text('退出');
                                var ple_sta = target.siblings('.stc').attr('ple_sta');
                                if(ple_sta == '1' ){
                                    var html = '<i data-mid="'+mid+'"data-active="0" class="stc">退押金</i>';
                                    target.parent().html(html);
                                }
                                else
                                    target.text('');
                            } else
                                PFT_GLOBAL.U.Alert("fail",'<p style="width:120px;">'+data.msg+'</p>');
                        }
                    });
				}
			})
            //通过
			listUl.on("click",".stb",function(e){
                var target = $(e.currentTarget);
                var mid= target.data("mid");
                var active= target.data("active");
                if(active=="2"){
                    $.ajax({
                       // "url" : "http://www.12301.cc/call/jh_alliance.php?action=audit_do",
                       "url" : "http://www.12301.cc/admin/pppp.php",
                        "data" :  {mid:mid,status:"0"},
                        "dataType":"json",
                        "type": 'POST',
                        "success":function(data){
                            if(data.status=='success'){
                                PFT_GLOBAL.U.Alert("success",'<p style="width:120px;">'+data.msg+'</p>');
                                target.parent().parent().prev().text('正常(已审核)');
                                var ple_sta = target.siblings('.stc').attr('ple_sta');
                                var stc = '';
                                if(ple_sta == '1')
                                     stc =  '<i data-mid="'+mid+'"data-active="0" class="stc"></i>';
                                var html = '<i data-mid="'+mid+'"data-active="0" class="sta">退出</i>'+stc;
                                target.parent().html(html);
                            }else
                                PFT_GLOBAL.U.Alert("fail",'<p style="width:120px;">'+data.msg+'</p>');
                        }
                    });
                }
            })
            //退押金
            listUl.on("click",".stc",function(e){
                var target = $(e.currentTarget);
                var mid= target.data("mid");
                var active= target.data("active");
                $.ajax({
                   // "url" : "http://www.12301.cc/call/jh_alliance.php?action=hand_out_pledge",
                   "url" : "http://www.12301.cc/admin/pppp.php",
                    "data" :  {mid:mid},
                    "dataType":"json",
                    "type": 'POST',
                    "success":function(data){
                        if(data.sta=='suc'){
                            PFT_GLOBAL.U.Alert("success",'<p style="width:120px;">'+data.msg+'</p>');
                            target.text('');
                        }else
                            PFT_GLOBAL.U.Alert("fail",'<p style="width:120px;">'+data.msg+'</p>');
                    }
                });
            })